import Vue from 'vue'

import {
    Button,
    NavBar,
    Form,
    Field,
    Empty,
    Image,
    CellGroup,
    Toast,
    Uploader,
    Cell,
    Dialog,
    Icon,
    Popup,
    Lazyload,
    Pagination,
    SwipeCell,
    ActionSheet,
    Picker,
    Search,
    Calendar,
    Switch,
    RadioGroup,
    Radio,
    ImagePreview,
    Row,
    Col,
    Loading,
    DatetimePicker,
    Collapse,
    CollapseItem,
    Card,
    List,
    Divider,
    PullRefresh,
    Checkbox,
    CheckboxGroup,
    Tag,
    Swipe,
    SwipeItem,
    Grid,
    GridItem,
    Overlay,
    Popover,
    DropdownMenu,
    DropdownItem,
} from 'vant'

Vue.use(Button)
    .use(NavBar)
    .use(Form)
    .use(Field)
    .use(Empty)
    .use(Image)
    .use(CellGroup)
    .use(Toast)
    .use(Uploader)
    .use(Cell)
    .use(Dialog)
    .use(Icon)
    .use(Popup)
    .use(Lazyload)
    .use(Pagination)
    .use(SwipeCell)
    .use(ActionSheet)
    .use(Picker)
    .use(Search)
    .use(Calendar)
    .use(Switch)
    .use(RadioGroup)
    .use(Radio)
    .use(ImagePreview)
    .use(Row)
    .use(Col)
    .use(Loading)
    .use(DatetimePicker)
    .use(Collapse)
    .use(CollapseItem)
    .use(Card)
    .use(List)
    .use(Divider)
    .use(PullRefresh)
    .use(Checkbox)
    .use(CheckboxGroup)
    .use(Tag)
    .use(Swipe)
    .use(SwipeItem)
    .use(Grid)
    .use(GridItem)
    .use(Overlay)
    .use(Popover)
    .use(DropdownMenu)
    .use(DropdownItem)

Toast.setDefaultOptions({ duration: 1500 })